<form class="layui-form info-form" action="">
	<input name="id" id="id" type="hidden" value="{$info.id}">
	<div class="layui-form-item">
		<label class="layui-form-label">商品封面：</label>
		{:W('common/uploadImg',array(cover,$info['cover_url'],'90x90',封面))}
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品编号：</label>
			<div class="layui-input-inline">
				<input name="product_sn" id="product_sn" value="{$info.product_sn}" lay-verify="required" autocomplete="off" placeholder="请输入商品编号" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品名称：</label>
			<div class="layui-input-inline">
				<input name="name" id="name" value="{$info.name}" lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">使用积分：</label>
			<div class="layui-input-inline">
				<input name="points" id="points" value="{$info.points}" lay-verify="required" placeholder="请输入使用积分" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品品牌：</label>
			<div class="layui-input-inline">
				{:W('common/singleSelect',array('brand_id|1|所属品牌|name|id',M("brand")->where(['type'=>2,'status'=>1,'mark'=>1])->select(),$info['brand_id']))}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品分类：</label>
			<div class="layui-input-inline">
				{:W('common/singleSelect',array('cate_id|1|商品分类|name|id',M("category")->where(['parent_id'=>0,'type'=>2,'status'=>1,'mark'=>1])->select(),$info['cate_id']))}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">库存总数：</label>
			<div class="layui-input-inline">
				<input name="stock_num" id="stock_num" value="{$info.stock_num}" lay-verify="required" placeholder="请输入商品库存总数" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item" style="width:950px;">
		<label class="layui-form-label">商品详情：</label>
		<div class="layui-input-block">
			<textarea name="intro" id="intro" lay-verify="required" class="layui-textarea">{$info.intro}</textarea>
			{:W('kindeditor/getEditor',array('default',intro,'100%',400))}
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="submitForm" id="submitForm">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>